﻿<?php session_start();?>
<?php require_once 'login.php';?>
<!doctype html>
<html>
<head>
<meta charset="utf8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" href="css/bootstrap.css" rel="stylesheet" />
<link type="text/css" href="css/bootstrap-theme.css" rel="stylesheet" />
<link type="text/css" href="css/start/jquery-ui-1.10.4.custom.css" rel="stylesheet" />
<link type="text/css" href="css/style.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.11.0.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.4.custom.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/timlop.js"></script>
<script type="text/javascript" src="js/sinhvien_add.js"></script>
<script type="text/javascript" src="js/sinhvien_edit.js"></script>
<script type="text/javascript" src="js/sinhvien_del.js"></script>
<script type="text/javascript" src="js/sinhvien_THB.js"></script>
<script type="text/javascript" src="js/sinhvien_KHHT.js"></script>
<script type="text/javascript" src="js/sinhvien_KQHT.js"></script>
<script type="text/javascript" src="js/tabsDKMonThi.js"></script>
<script type="text/javascript" src="js/sinhvien_DK_MonThi.js"></script>
<script type="text/javascript" src="js/scrip_danhmuc.js"></script>
<script type="text/javascript" src="js/GiaoVien_NhapDiem.js"></script>
<script type="text/javascript" src="js/giaovien_tkb.js"></script>
<script>
  $(function() {
    $( "#accordion" ).accordion({
      collapsible: true
    });
  });
  </script>
</head>
<body>
<!-- header -->
		<div id="my-header">
		  	<div class="container">	
				<div id="my-logo" ></div>				  
			</div>
			<div class="form-group">
			<div class="col-sm-1"></div>
			<div class="col-sm-9">
			<input type="button" value="Trang Chủ" class="btn btn-success" onClick="location.href='index.php'">
			</div>
			<div class="col-sm-2">
			<?php if ($login):?>
			<input type="button" value="Đăng xuất" class="btn btn-success" onClick="location.href='index.php?dx=true'">
			<?php endif; ?>
			</div>
			
				<div id="my-login">
				 <?php if (!$login):?>
			<?php else:?>
				<form class="navbar-form navbar-center" role="form" action="<?php echo $_SERVER['PHP_SELF']?>" method="post" >
          <div class="form-group chao" >
          <?php echo 'Chào, '?>
          </div>
          <div class="form-group chao2" data-mssv1=<?php echo $UserDN?> id="mssv">
          <?php echo $UserDN?>
          </div>
			</form>
				
			<?php endif;?>
			  </div>	
		</div>
		</div>
</div>
<?php 	if(!$login){?>
	 <div class="row" id="main-container">			 
				 <div class="container" id="Khung">
				 <div class="col-sm-7">
				 <div id="Thongbao"></div>
				 </div>
				 <div class="col-sm-4">
				 <div id="DangNhap">
      <form class="form-signin" role="form" action="<?php echo $_SERVER['PHP_SELF']?>" method="post">
      <hr>
        <input type="text" class="form-control" placeholder="Mã số đăng nhập" name="TaiKhoan">
        <input type="password" class="form-control" placeholder="Mật khẩu"  name="Passwork">
        <label class="checkbox">
          <input type="checkbox" name="chkRemember"
						value="ok">Nhớ mật khẩu
        </label>
        <button class="btn btn-lg btn-primary btn-block" type="submit" name="submit"
					value="Login">Đăng nhập</button>
      </form>

    </div>
				 </div>
				 </div>
				 </div>	
				 		  </div>
	
	<?php }else{?>
		<!-- hien thi thong tin -->		
		<div class="row" id="main-container">
		<div class="container">	
			<div class="col-md-2">
			<?php if($type=="SV"){?>
				 <div class="panel panel-primary">
				 	<div class="panel-heading">MENU</div>
				 	 <div class="list-group">
					  <a href="Ketquahoctap.php" class="list-group-item">XEM THÔNG TIN</a>
					  <a href="menu_dangky.php" class="list-group-item">ĐĂNG KÝ THI ĐẤU</a>
					  <a href="Sendmail.php" class="list-group-item">GỬI MAIL</a>
					</div>
					<div class="panel-footer btn-primary" id="footer"></div>
				 </div>
				 <?php }else{?>
				 <?php if($type=="GV"){?>
				 <div class="panel panel-primary">
				 	<div class="panel-heading">MENU</div>
				 	 <div class="list-group">
					  <a href="student.php" class="list-group-item">THÔNG TIN SINH VIÊN</a>
					  <a href="menu_Kehoachhoctap.php" class="list-group-item">TỔ CHỨC HỘI THAO</a>
					  <a href="GV_NhapDiem.php" class="list-group-item">NHẬN XÉT VÀ KHEN THƯỞNG</a>
					  <a href="DSSVDK.php" class="list-group-item">THÔNG TIN SINH VIÊN ĐÃ ĐĂNG KÝ</a>
					  <a href="Sendmail.php" class="list-group-item">GỬI MAIL</a>
					</div>
					<div class="panel-footer btn-primary" id="footer"></div>
				 </div>
				 <?php }}?>
			</div>
			<div class="col-md-10">
				<div id="main-content">
 <?php }?>


